package net.xdclass.websocket.controller.v4;

import net.xdclass.websocket.service.WebSocketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.stereotype.Controller;

/**
 * @description: 实时推送服务器的jvm负载，已用内存等信息
 * @author: Yz
 * @create: 2020-07-01 14:12
 **/
@Controller
public class V4ServerInfoController {

    @Autowired
    private WebSocketService webSocketService;

    @MessageMapping("/v4/schedule/push")
    public void sendServerInfo(){
        webSocketService.sendServerInfo();
    }

}
